/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hycreate.platform.modules.crm.project;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hycreate.platform.common.persistence.DataEntity;
import com.hycreate.platform.modules.crm.findcustomer.FindCustomer;
import com.hycreate.platform.modules.crm.findcustomer.FindCustomerContact;

/**
 * 项目管理Entity
 * @author hj
 * @version 2016-12-02
 */
public class Project extends DataEntity<Project> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// name
	private String customerId;		// customer_id
	private String statusId;		// status_id
	private String proContact;		// pro_contact
	private String followMan;		// follow_man
	private Date beginTime;		// begin_time
	private Date endTime;		// end_time
	private String content;		// content
	private String note;		// note
	private String spare1;		// spare1
	
	private String pId;   //项目id
	private String cname;  //项目所在公司名
	private String fname;  //跟进人名
	private String dname;  //状态名
	private String pcname; //联系人名
	private String createid; //创建人id
	

	
	private FindCustomerContact findCustomerContact;
	private FindCustomer findCustomer;
	
	public Project() {
		super();
	}

	public Project(String id){
		super(id);
	}

	@Length(min=0, max=100, message="name长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="customer_id长度必须介于 0 和 64 之间")
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	
	@Length(min=0, max=64, message="status_id长度必须介于 0 和 64 之间")
	public String getStatusId() {
		return statusId;
	}

	public void setStatusId(String statusId) {
		this.statusId = statusId;
	}
	
	@Length(min=0, max=64, message="pro_contact长度必须介于 0 和 64 之间")
	public String getProContact() {
		return proContact;
	}

	public void setProContact(String proContact) {
		this.proContact = proContact;
	}
	
	@Length(min=0, max=64, message="follow_man长度必须介于 0 和 64 之间")
	public String getFollowMan() {
		return followMan;
	}

	public void setFollowMan(String followMan) {
		this.followMan = followMan;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=500, message="content长度必须介于 0 和 500 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=200, message="note长度必须介于 0 和 200 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
	@Length(min=0, max=100, message="spare1长度必须介于 0 和 100 之间")
	public String getSpare1() {
		return spare1;
	}

	public void setSpare1(String spare1) {
		this.spare1 = spare1;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getDname() {
		return dname;
	}

	public void setDname(String dname) {
		this.dname = dname;
	}

	public String getPcname() {
		return pcname;
	}

	public void setPcname(String pcname) {
		this.pcname = pcname;
	}


	public FindCustomerContact getFindCustomerContact() {
		return findCustomerContact;
	}

	public void setFindCustomerContact(FindCustomerContact findCustomerContact) {
		this.findCustomerContact = findCustomerContact;
	}

	public FindCustomer getFindCustomer() {
		return findCustomer;
	}

	public void setFindCustomer(FindCustomer findCustomer) {
		this.findCustomer = findCustomer;
	}

	public String getCreateid() {
		return createid;
	}

	public void setCreateid(String createid) {
		this.createid = createid;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	
	
}